package desgin.pattern.other.reactor;

import java.io.IOException;

/**
 * Created by kai on 2015/6/28 0028.
 */
public class Main {
    public static void main(String[] args) throws IOException {
        NioProcessor nioProcessor = new NioProcessor("testNioReactor");
        nioProcessor.startup();

        NioAcceptor nioAcceptor = new NioAcceptor(2000);
        nioAcceptor.setProcessor(nioProcessor);
        nioAcceptor.start();


        System.out.println("Listening 2000...");
    }
}
